package com.lfx.concurrent.compete;

/**
 * @author 李逢喜
 * create 2021/7/30
 */
public class MyThread extends Thread{

    private   ConcurrentDemo concurrentDemo;


    private double amount;


    public MyThread(ConcurrentDemo concurrentDemo,double amount){
        this.concurrentDemo=concurrentDemo;
        this.amount=amount;
    }


    @Override
    public void run() {
        concurrentDemo.modify(amount);
    }
}
